<?php
require_once "D:/www/zhaojinyin_b2c/mobile/api/jssdk.php";
$jssdk = new JSSDK("wx14c698d448cb3a1f", "b837f849f6de475663ae2ef990adf546");
$signPackage = $jssdk->GetSignPackage();
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>金银商城 - 找金银网旗下金银珠宝精品商城</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" charset="utf-8"></script>
		<script type="text/javascript">
			wx.config({
				debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
				appId: 'wx14c698d448cb3a1f', // 必填，公众号的唯一标识
				timestamp: '3216549874', // 必填，生成签名的时间戳
				nonceStr: '123456987', // 必填，生成签名的随机串
				signature: 'zhaojinyin',// 必填，签名，见附录1
				jsApiList: [
					'onMenuShareTimeline'
				] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
			});
			wx.ready(function(){

				// config信息验证后会执行ready方法，所有接口调用都必须在config接口获得结果之后，config是一个客户端的异步操作，所以如果需要在页面加载时就调用相关接口，则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口，则可以直接调用，不需要放在ready函数中。
				wx.onMenuShareTimeline({
					title: '我们都是演说家', // 分享标题
					link: 'http://www.zhaojinyin.cn/mobile', // 分享链接
					imgUrl: 'http://www.zhaojinyin.cn/data/upload/shop/store/goods/1/1_05228435006764405.jpg', // 分享图标
					success: function () {
						// 用户确认分享后执行的回调函数
					},
					cancel: function () {
						// 用户取消分享后执行的回调函数
					}
				});
			});

		</script>
		<!--标准mui.css-->
		<link rel="stylesheet" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/mui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/app.css" />
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/zhaojinyin_index.css" />
		<link href="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/css/font-awesome.min.css" rel="stylesheet" type="text/css">
		<style>
			.title {
				margin: 20px 15px 10px;
				color: #6d6d72;
				font-size: 15px;
			}
		</style>
	</head>

	<body style="padding-bottom: 150px;">

		<div class="mui-bar mui-bar-nav" style="height: 48px;">
			<!--
            	时间：2016-03-24
            	描述：左边按钮
            	<a class="mui-pull-left left-btn"></a>
            --><button class="btn btn_primary" id="onMenuShareTimeline" style="clear: both">onMenuShareTimeline</button>
			<?php if(empty($output['member_name'])){?>
			<a id="login" class="mui-pull-left font_sz_16" style="background-image: none; line-height: 45px; height: 45px;" href="index.php?act=login">登录</a>
			<?php }else{?>
			<a href="javascript:;" class="mui-pull-left font_sz_16" style="background-image: none; line-height: 45px; height: 45px;overflow: hidden;width: 12%;">欢迎</a>
			<?php }?>
			<!--
            	时间：2016-03-24
            	描述：右边按钮
            	<a class="mui-icon mui-pull-right right-btn"><span class="mui-badge">36</span></a>
            -->
			<?php if(empty($output['member_name'])){?>
			  <a id="reg" class="mui-icon mui-pull-right font_sz_16" style="line-height: 27px; height: 27px;" href="index.php?act=login&op=register">注册</a>
			<?php }else{?>
			  <a id="logout" class="mui-icon mui-pull-right font_sz_16" style="line-height: 27px; height: 27px;" href=javascript:if(confirm('确实要退出登录吗?'))location="index.php?act=login&op=logout">注销</a>
			<?php }?>
			<!--
            	时间：2016-03-24
            	描述：中间搜索放大镜
            -->
			<form>
			 <a class="fandajin-btn"></a>
			 <h1 class="mui-title"><input style="padding-left: 40px;<?php if(empty($output['member_name'])){?> width: 93%;<?php }else{?> width: 83%; <?php }?>" type="text" id="keyword" placeholder="在此输入内容..."/></h1>
			</form>
		</div>
     <style >
		 .mui-active span {color:#666;}
	 </style>
		<nav class="mui-bar mui-bar-tab">
			<a class="mui-tab-item1" href="index.php">
				<span style="margin: -2px 0 2px 0;" class="mui-icon"><img style="width: 20px;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/1_0112.png"></span>
				<span class="mui-tab-label">首页</span>
			</a>

			<a class="mui-tab-item1" id="tabbar-with-fenlei" href="index.php?act=goods_class">
				<span class="mui-icon "><img style="width: 20px;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/1_0121.png"></span>
				<span class="mui-tab-label">分类</span>
			</a>

			<a class="mui-tab-item1" id="tabbar-shoppingcart1" href="index.php?act=shopcart">
				<span class="mui-icon "><img style="width: 20px;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/1_0131.png"><span class="mui-badge" style="display: none;">9</span></span>
				<span id="gouwuche" class="mui-tab-label">购物车</span>
			</a>

			<a class="mui-tab-item1" id="tabbar-me-contact" href="/mobile/index.php?act=member_index&op=member_index">
				<span style="margin: -2px 0 2px 0;" class="mui-icon"><img style="width: 20px;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/1_0141.png"></span>
				<span class="mui-tab-label">我</span>
			</a>
		</nav>

		<div class="mui-content mt45">
			<div id="slider" class="mui-slider mui-active">
				<div id="shangpinxiangqing" class="mui-slider-group mui-slider-loop">
					<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->

					<div class="mui-slider-item mui-slider-item-duplicate">
						<a href="<?php echo $output['slider_list'][0]['link'];?>">
							<img src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_MOBILE.'/sliders/'.$output['slider_list'][0]['gc_thumb'];?>">
						</a>
					</div>
                   <?php
				   $n=0;
				   foreach($output['slider_list'] as $item){  ?>
					<!-- 第<?php echo $n++;?>张 -->
					<div class="mui-slider-item">
						<a href="<?php echo $item['link'];?>">
							<img src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_MOBILE.'/sliders/'.$item['gc_thumb']; ?>">
						</a>
					</div>
					<?php }?>

					<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
					<div class="mui-slider-item mui-slider-item-duplicate">
						<a href="<?php echo $output['slider_list'][0]['link'];?>">
							<img src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_MOBILE.'/sliders/'.$output['slider_list'][0]['gc_thumb'];?>">
						</a>
					</div>
				</div>
				<div class="mui-slider-indicator">
					<?php for($i=0;$i<count($output['slider_list']);$i++){?>
					<div class="mui-indicator<?php if($i==0){?> mui-active<?php }?>"></div>
					<?php }?>
				</div>
			</div>
		</div>

		<div class="index-daohang-item">
			<!--ul>
				<li><a href="index.php?act=favorite"><img src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_17.png" />
					<p>1元购</p></a>
				</li>
				<li><a href="index.php?act=shipping"><img src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_19.png" />
					<p>限时抢购</p></a>
				</li>
				<li><a href="index.php?act=goods_browse"><img src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_21.png" />
					<p>品牌团</p></a>
				</li>
				<li><a href="index.php?act=brand"><img src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_23.png" />
					<p>即将上线</p></a>
				</li>
			</ul-->
			<p></p>
			<div style="padding-left: 10px;padding-bottom: 5px;" class="font_sz_14">
				<label class="font_weight_bolder">金银商城</label>
				<label class="font_weight_bolder bg_red color_FFFFFF border_radius_4" style=" padding: 2px 2px 1px 2px;">公告</label>：
				<label class="font_weight_bolder" style="color: red;">HOT</label>
				<?php $article = $output['article'][0];?>
				<label style="color: #666;"><a href="<?php echo '/mobile/index.php?act=index&op=article&article_id='.$article['article_id'];?>"><?php echo htmlspecialchars_decode($article['article_title']);?></a></label>
			</div>
		</div>

		<!--
        	作者：569154771@qq.com
        	时间：2016-03-24
        	描述：限时快抢
        -->
		<style>
			.time-remain {display: block;}
			.time-remain em { background-color: rgba(0, 0, 0, 0.58); color: #FFFFFF; border-radius: 3px;padding: 2px 6px; margin: 3px;font-size: 16px;}
		</style>
		<div style=" width:100%; height: 161px;margin-top: 10px; display:none;">

			<div style="float: left;width: 40%; border-right: 1px solid #EEEEEE;height: 161px;background-color: #ffffff;text-align: center" class="xianshi">
				<img style="width:70%;position: relative;"  src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_29_03.jpg">
				<?php foreach($output['xianshi_item'] as $val) { ?>
				<span class="time-remain" count_down="<?php echo $val['end_time']- time();?>" style="color: #000000;height: 20px;position: relative;
"><i></i><em time_id="h"

>0</em>: <em time_id="m">0</em>:<em time_id="s">0</em></span>
				<a href="<?php echo str_replace("/shop/","/mobile/",urlShop('goods','goods_body',array('goods_id'=> $val['goods_id'])));?>"><img style="width:100%;margin-top:10px;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_GOODS.DS.$val['goods_image'];?>"></a>
				<?php } ?>
			</div>

			<div style="float: left; width: 60%;">

				<div style="float:left;height: 81px;border-bottom: 1px solid #EEEEEE;">
					<?php $adv = $output['top_adv'][0]; $adv_data = unserialize($adv['adv_content']); ?>
					<a href="<?php echo $adv_data['adv_pic_url'];?>">
					 <img style="width: 100%; height: 80px;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$adv_data['adv_pic']; ?>">
					</a>
				</div>
				<div>
					<div style="float: left; width: 50%;border-right: 1px solid #EEEEEE;height: 80px;">
						<?php $adv = $output['top_adv'][1]; $adv_data = unserialize($adv['adv_content']); ?>
						<a href="<?php echo $adv_data['adv_pic_url'];?>">
						 <img style="width: 100%; height: 80px;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$adv_data['adv_pic']; ?>">
					    </a>
					</div>
					<div style="float: left;  width: 50%;height: 80px;">
						<?php $adv = $output['top_adv'][2]; $adv_data = unserialize($adv['adv_content']); ?>
						<a href="<?php echo $adv_data['adv_pic_url'];?>">
						 <img style="width: 100%; height: 80px;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$adv_data['adv_pic']; ?>">
					    </a>
					</div>
				</div>

			</div>

		</div>

		<div style="margin-top: 0px; margin-bottom: -4px;">
			<?php $banner = $output['index_banner'][0]; $banner_data = unserialize($banner['adv_content']); ?>
			<a href="<?php echo $banner_data['adv_pic_url'];?>">
			<img style="width: 100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$banner_data['adv_pic']; ?>">
			</a>
		</div>

		<!--
        	作者：569154771@qq.com
        	时间：2016-03-24
        	描述：品牌特卖
        -->
		<div style="background: #FFFFFF; padding-top: 15px;min-height: 270px;">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_41.jpg">

			<ul class="pinpai_list">
               <?php foreach($output['index_brand'] as $brand){ $brand_data = unserialize($brand['adv_content']);?>
				<li><a href="<?php echo $brand_data['adv_pic_url'];?>">
					<div><img src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$brand_data['adv_pic']; ?>"></div>
					<div>
					 <label><?php echo $brand['adv_title'];?></label>
					  <label style="float: right;padding-right: 5%">全场
						<label class="color_red"><?php echo $brand['buy_style'];?></label>折起</label>
	            	</div></a>
				</li>
               <?php }?>
			</ul>
		</div>
		<div style="margin-top: 10px; margin-bottom: -4px;display: none;">
			<?php $banner = $output['index_banner'][1]; $banner_data = unserialize($banner['adv_content']); ?>
			<a href="<?php echo $banner_data['adv_pic_url'];?>">
				<img style="width: 100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$banner_data['adv_pic']; ?>">
			</a>
		</div>

		<!--
        	作者：569154771@qq.com
        	时间：2016-03-24
        	描述：黄金专区
        -->
		<div style="background: #FFFFFF; padding-top: 15px;min-height: 300px;">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_58.jpg">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_66.jpg">
			<div style=" width:100%;margin-top: 10px;">

				<div style="float:left;width:40%; border-right:1px solid #EEEEEE;">
					<?php $product = $output['product_gold'][0]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
					?>
					<a href="<?php echo $product_data['adv_pic_url'];?>">
						<img style="width: 100%;padding-bottom:2px;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
					</a>
					<?php }?>

				</div>

				<div style="float: left; width: 60%;">
					<?php $product = $output['product_gold'][1]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
					?>
					<a href="<?php echo $product_data['adv_pic_url'];?>">
						<img style="width: 100%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
					</a>
					<?php }?>
					<?php $product = $output['product_gold'][2]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
					?>
					<a href="<?php echo $product_data['adv_pic_url'];?>">
						<img style="width: 48.5%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
					</a>
					<?php }?>
					<?php $product = $output['product_gold'][3]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
					?>
					<a href="<?php echo $product_data['adv_pic_url'];?>">
						<img style="width: 48.5%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
					</a>
					<?php }?>
				</div>

			</div>

		</div>
		<div style="background: #FFFFFF; padding-top: 15px;min-height: 300px;">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_59.jpg">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_66.jpg">
			<div style=" width:100%;margin-top: 0px;">

				<div style="float:left;width:40%; border-right:1px solid #EEEEEE;">
					<?php $product = $output['product_silver'][0]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 100%;padding-bottom:2px;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>

				</div>

				<div style="float: left; width: 60%;">
					<?php $product = $output['product_silver'][1]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 100%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_silver'][2]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 48.5%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_silver'][3]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 48.5%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
				</div>

			</div>

		</div>

		<div style="background: #FFFFFF; padding-top: 15px;min-height: 300px;">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_61.jpg">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_66.jpg">
			<div style=" width:100%;margin-top: 0px;">

				<div style="float:left;width:40%; border-right:1px solid #EEEEEE;">
					<?php $product = $output['product_platinum'][0]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 100%;padding-bottom:2px;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>

				</div>

				<div style="float: left; width: 60%;">
					<?php $product = $output['product_platinum'][1]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 100%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_platinum'][2]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 48.5%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_platinum'][3]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 48.5%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
				</div>

			</div>

		</div>

		<div style="background: #FFFFFF; padding-top: 15px;min-height: 300px;">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_63.jpg">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_66.jpg">
			<div style=" width:100%;margin-top: 0px;">

				<div style="float:left;width:40%; border-right:1px solid #EEEEEE;">
					<?php $product = $output['product_jewelry'][0]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 100%;padding-bottom:2px;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>

				</div>

				<div style="float: left; width: 60%;">
					<?php $product = $output['product_jewelry'][1]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 100%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_jewelry'][2]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 48.5%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_jewelry'][3]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 48.5%;border-bottom: solid 1px #eeeeee;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
				</div>

			</div>

		</div>

		<div style="margin-top: 10px; margin-bottom: -5px;display: none;">
			<?php $banner = $output['index_banner'][2]; $banner_data = unserialize($banner['adv_content']); ?>
			<a href="<?php echo $banner_data['adv_pic_url'];?>">
				<img style="width: 100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$banner_data['adv_pic']; ?>">
			</a>
		</div>

		<!--
        	作者：569154771@qq.com
        	时间：2016-03-24
        	描述：白银专区
        -->
		<div style="background: #FFFFFF; padding-top: 15px;min-height: 280px;display: none;">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_72.jpg">
			<div style=" width:100%;margin-top: 10px;">

				<div style="float:left;width:50%; border-right:1px solid #EEEEEE;">
					<?php $product = $output['product_silver'][0]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
					    </a>
					<?php }?>
					<?php $product = $output['product_silver'][1]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
					   <a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:50%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
					   </a>
					<?php }?>
					<?php $product = $output['product_silver'][2]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
					   <a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:50%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
					    </a>
					<?php }?>
				</div>

				<div style="float:left;width:50%; border-right:1px solid #EEEEEE;">
					<?php $product = $output['product_silver'][3]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="width: 100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_silver'][4]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:50%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_silver'][5]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:50%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
				</div>

			</div>

		</div>

		<div style="margin-top: 10px; margin-bottom: -5px;display: none;">
			<?php $banner = $output['index_banner'][3]; $banner_data = unserialize($banner['adv_content']); ?>
			<a href="<?php echo $banner_data['adv_pic_url'];?>">
				<img style="width: 100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$banner_data['adv_pic']; ?>">
			</a>
		</div>

		<!--
        	作者：569154771@qq.com
        	时间：2016-03-24
        	描述：白金专区
        -->
		<div style="background: #FFFFFF; padding-top: 15px;min-height: 280px;display: none;">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_92.jpg">
			<div style=" width:100%;margin-top: 10px;">

				<div style="float:left;width:50%; border-right:1px solid #EEEEEE;">
					<?php $product = $output['product_platinum'][0]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_platinum'][1]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
				</div>

				<div style="float:left;width:50%;">
					<?php $product = $output['product_platinum'][2]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:50%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_platinum'][3]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:50%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_platinum'][4]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:50%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_platinum'][5]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:50%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
				</div>

			</div>

		</div>

		<div style="margin-top: 15px; margin-bottom: -5px;display: none;">
			<?php $banner = $output['index_banner'][4]; $banner_data = unserialize($banner['adv_content']); ?>
			<a href="<?php echo $banner_data['adv_pic_url'];?>">
				<img style="width: 100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$banner_data['adv_pic']; ?>">
			</a>
		</div>


		<div style="background: #FFFFFF; padding-top: 15px;min-height: 300px;display: none;">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_101_02-05.jpg">
			<div style=" width:100%;margin-top: 10px;">

				<div style="float:left;width:50%; border-right:1px solid #EEEEEE;">
					<?php $product = $output['product_jewelry'][0]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_jewelry'][1]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
				</div>

				<div style="float:left;width:50%;">
					<?php $product = $output['product_jewelry'][2]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_jewelry'][3]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
					<?php $product = $output['product_jewelry'][4]; $product_data = unserialize($product['adv_content']);
					if(!empty($product_data)){
						?>
						<a href="<?php echo $product_data['adv_pic_url'];?>">
							<img style="float:left;width:100%;" src="<?php echo UPLOAD_SITE_URL.DS.ATTACH_ADV.DS.$product_data['adv_pic']; ?>">
						</a>
					<?php }?>
				</div>

			</div>

		</div>

		<!--
        	作者：569154771@qq.com
        	时间：2016-03-24
        	描述：品牌特卖
        -->
		<div style="background: #FFFFFF; padding-top: 15px;margin-top: 10px;min-height: 200px; padding-bottom: 70px; float: left;">
			<img style="width: 100%;" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/indexs_102.jpg">

			<ul class="pinpai_list" style="padding-top:5px ;">
               <?php $i=1;foreach($output['goods_list'] as $value){?>
				<li style="margin-top: 2px;">
					<a href="<?php echo urlShop('goods','goods_body',array('goods_id'=>$value['goods_id']));?>" target="_blank" title="<?php echo $value['goods_name'];?>">
					<div style="border: 1px solid #EEEEEE;  width: 96%; height:230px;">
						<img style="width: 100%" src="<?php echo cthumb($value['goods_image'], 240,$value['store_id']);?>">

						<label style="float: left;padding-left: 5px;margin-top: -15px;"><?php echo str_cut($value['goods_name'],22);?>.</label>
						<p style="float: left; padding-left: 5px; width: 100%;color:#ff0000;">
							<label>即将揭晓...</label>
						</p>
					</div></a>
				</li>
				<?php $i++;} ?>

			</ul>
		</div>

	</body>
	<script src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/jquery.js"></script>
	<script type="text/javascript" src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/home_index.js" charset="utf-8"></script>
	<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/waypoints.js"></script>
	<script src="<?php echo MOBILE_RESOURCE_SITE_URL; ?>/js/mui.min.js"></script>
	<script type="text/javascript" charset="utf-8">

		mui.init({
			swipeBack: true //启用右滑关闭功能
		});
		/*
		(function($, doc) {
			$.plusReady(function() {
				//分类
				doc.getElementById('tabbar-with-fenlei').addEventListener('tap', function() {
					$.openWindow({
						url: 'fenlei.html'
					});
				}, false);
				//购物车
				doc.getElementById('gouwuche').addEventListener('tap', function() {
					$.openWindow({
						url: 'gouwuche.html'
					});
				}, false);
				//会员中心
				doc.getElementById('tabbar-me-contact').addEventListener('tap', function() {
					$.openWindow({
						url: 'huiyuanzhongxin.html'
					});
				}, false);
				
				//login
				doc.getElementById('login').addEventListener('tap', function() {
					$.openWindow({
						url: 'index.php?act=login'
					});
				}, false);
				//reg
				doc.getElementById('reg').addEventListener('tap', function() {
					$.openWindow({
						url: 'reg.html'
					});
				}, false);
				//shangpinxiangqing
				doc.getElementById('shangpinxiangqing').addEventListener('tap', function() {
					$.openWindow({
						url: 'goods_shangpinxiangqing.html'
					});
				}, false);
			});
		}(mui, document));
		*/
		$(".mui-tab-item").click(function(){
			window.location.href= $(this).attr("href");
		});

		$("#tabbar-with-fenlei").click(function(){
            $("#tabbar-with-fenlei span img").attr("src",'<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_115.jpg');
            $("#tabbar-shoppingcart span img").attr("src",'<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_1181.jpg');
		});
		$("#tabbar-shoppingcart").click(function(){
			$("#tabbar-with-fenlei span img").attr("src",'<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_1151.jpg');
			$("#tabbar-shoppingcart span img").attr("src",'<?php echo MOBILE_RESOURCE_SITE_URL; ?>/images/index_118.png');
		});

		$(".fandajin-btn").click(function(){
			var keyword = encodeURIComponent($('#keyword').val());
			window.location.href = 'index.php?act=search&op=index&keyword='+keyword;
		});

	</script>

</html>